import Cookies from 'js-cookie'
import { getreg } from '@/api/table'

const state = {
  list: '',

}

const mutations = {
  list: (state,data) => {
    state.list = data
  }
}

const actions = {
  'FETCH_GET_LIST': async ({
    commit
  }, page) => {
    const res = await getreg(page)
    commit('list', res)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
